package com.ming_za.odupdaterserver.core.vo;

import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Component;

@Component
public class VoUtils {

    public <T> T cover(Object origin,T target){
        if(origin == null){
            return null;
        }
        BeanUtils.copyProperties(origin,target);
        return target;
    }
}
